# Contributor: Bart Ribbers <bribbers@disroot.org>
# Maintainer: Bart Ribbers <bribbers@disroot.org>
pkgname=elisa
pkgver=0_git20171209
pkgrel=0
_commit=b660f2ead2a6c716168d0599048fc78c26f949b1
pkgdesc='Elisa Music Player'
arch="all"
url='https://github/com/kde/elisa'
license="LGPL-3"
depends=""
makedepends="extra-cmake-modules qt5-qtbase-dev qt5-qtdeclarative-dev qt5-qtmultimedia-dev
	qt5-qtsvg-dev ki18n-dev kdeclarative-dev baloo-dev kfilemetadata-dev kxmlgui-dev
	kconfig-dev kcmutils-dev kpackage-dev"
source="https://github.com/kde/$pkgname/archive/$_commit.tar.gz"
options="!check" # Fails for unknown reasons
builddir="$srcdir/$pkgname-$_commit"

build() {
	cmake \
		-DCMAKE_BUILD_TYPE=Release \
		-DCMAKE_INSTALL_PREFIX=/usr \
		-DKDE_INSTALL_LIBDIR=lib
	make
}

check() {
	cd "$builddir"
	CTEST_OUTPUT_ON_FAILURE=TRUE ctest
}

package() {
	cd "$builddir"
	make DESTDIR="${pkgdir}" install
}
sha512sums="5b688b061bc6dbfc3451c6f14bf5a80855403c0ed5da52952bd71799814b80ae61f53bdfac5ad389f0acbbe0606de511d642aaac7df322ad032ce3d7bd5219b4  b660f2ead2a6c716168d0599048fc78c26f949b1.tar.gz"
